package bmark

import grails.test.*

class BookmarkTests extends GrailsUnitTestCase {
    protected void setUp() {
        super.setUp()
    }

    protected void tearDown() {
        super.tearDown()
    }

    void testUrlValidation() {
        mockForConstraintsTests(Bookmark)

        def bm = new Bookmark(url: "http://markomannux.org")

        bm.validate()
        assertNull bm.errors['url']

    }
}
